package com.ueboot.weishop.repository.area;

import com.ueboot.core.repository.BaseRepository;
import com.ueboot.weishop.entity.setting.AreaEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 区域管理仓储层
 */
@Repository
public interface AreaRepository extends BaseRepository<AreaEntity, Long> {

    List<AreaEntity> findByParentId(Long parentId);

    List<AreaEntity> findByFullPathIdStartingWithAndLevel(String fullPathId, Integer level);

    List<AreaEntity> findByLevel(int level);

}
